package com.bolt.core.view.components;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by Administrator on 2018/3/3.
 */
public class QueryForm extends ClosingUI {


    private static final String OPEN_TEMPLATE = "query_form";

    private static final String CLOSE_TEMPLATE = "close_query_form";

    private List <FormItem> group = new ArrayList <>();


    private String action;


    private String dataGrid;

    public List <FormItem> getGroup() {
        return group;
    }

    public void setGroup(List <FormItem> group) {
        this.group = group;
    }

    public String getAction() {
        return action;
    }

    public void setAction(String action) {
        this.action = action;
    }

    public String getDataGrid() {
        return dataGrid;
    }

    public void setDataGrid(String dataGrid) {
        this.dataGrid = dataGrid;
    }

    @Override
    protected String getDefaultTemplate() {
        return CLOSE_TEMPLATE;
    }

    @Override
    protected String getDefaultOpenTemplate() {
        return OPEN_TEMPLATE;
    }

    public void addFormItems(FormItem item) {
        group.add(item);
    }
}
